<?php
/**
 * OrderSimple.php
 *
 * @copyright  2022 beikeshop.com - All Rights Reserved
 * @link       https://beikeshop.com
 * @author     Edward Yang <yangjin@guangda.work>
 * @created    2022-08-24 10:51:53
 * @modified   2022-08-24 10:51:53
 */

namespace Beike\Admin\Http\Resources;

use Beike\Services\StateMachineService;
use Illuminate\Http\Resources\Json\JsonResource;

class ExportQuotationWord extends JsonResource
{
    public function toArray($request): array
    {
        $data = [
            'imagen_en'         => image_resize($this->image),
            'product_description_en'          => $this->name ,
            'sku'          => $this->product_sku,
            'precio_en'         => currency_format($this->price),
            'quantity_en'      => $this->quantity,
            'total_en'         => currency_format($this->price * $this->quantity),
            'total'            =>$this->price * $this->quantity,

//            'customer_name_en' => $this->customer_name,
//            'telephone_en'     => $this->telephone,
//            'shipping_address_en'     => $this->shipping_zone . $this->shipping_city. $this->shipping_address_1 ,
        ];
        return $data;
    }
}
